package ld.oauth.blog.model.po.question;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author ld
 * @since 2022-09-25
 */
@Getter
@Setter
@TableName("ld_question")
@ApiModel(value = "Question对象", description = "")
public class Question implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("浏览数")
    private Integer viewCount;

    @ApiModelProperty("点赞数")
    private Integer thumhup;

    @ApiModelProperty("图片地址")
    private String imageUrl;

    @ApiModelProperty("md格式的文章内容")
    private String mdContent;

    @ApiModelProperty("html格式的文章内容")
    private String htmlContent;

    @ApiModelProperty("回答数")
    private Integer reply;

    @ApiModelProperty("状态")
    private Integer status;

    @ApiModelProperty("创建人主键id")
    @TableField(fill = FieldFill.INSERT)
    private Integer creator;

    @ApiModelProperty("修改人主键id")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Integer updator;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createDate;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateDate;


}
